package org.codeart.broker.example01;

public class Client {

    public static void main(String[] args) {
        // 创建中介者
        Mediator mediator = new MediatorImpl();
        
        Colleague colleague1 = new ConcreteColleagueA(mediator);
        Colleague colleague2 = new ConcreteColleagueB(mediator);
        
        colleague1.exec("key-a");
        colleague2.exec("key-b");
    }

}
